Skip to content

feat(toolkit): consolidate packages into @ocpp-debugkit/toolkit with subpath exports - #55

Merged
sepehr-safari merged 2 commits into
mainfrom
feat/toolkit-consolidation
Jul 8, 2026
Merged

feat(toolkit): consolidate packages into @ocpp-debugkit/toolkit with subpath exports#55
sepehr-safari merged 2 commits into
mainfrom
feat/toolkit-consolidation

Conversation

@sepehr-safari

Copy link
Copy Markdown
Member

Summary

Consolidates the four independent npm packages (@ocpp-debugkit/core, scenarios, reporter, cli) into a single @ocpp-debugkit/toolkit package with subpath exports for modular consumption.

Changes

  • Create packages/toolkit/ — single @ocpp-debugkit/toolkit package
  • Move source — core, scenarios, reporter, CLI code moved into src/core/, src/scenarios/, src/reporter/, src/cli/ internal modules
  • Add stubssrc/replay/ and src/react/ modules with type signatures (filled in later phases)
  • Subpath exports./core, ./scenarios, ./reporter, ./replay, ./react, ./cli, ./fixtures
  • Build config — ESM, TypeScript declarations (.d.ts + source maps + declaration maps), sideEffects: false for tree-shaking
  • CLI binaryocpp-debugkit via package.json#bin
  • Internal imports — all cross-module imports updated from @ocpp-debugkit/* to relative paths
  • Delete old packagespackages/core/, packages/scenarios/, packages/reporter/, packages/cli/ removed
  • Update web appapps/web/ now depends on @ocpp-debugkit/toolkit: "workspace:*" only
  • Update docs — AGENTS.md (monorepo structure, dependency graph, build order), CURRENT_STATE.md (package status table, active milestone)
  • Add changeset — minor bump for @ocpp-debugkit/toolkit

Verification

  • pnpm build — 2/2 tasks successful (toolkit + web)
  • pnpm test — 196/196 tests pass (all existing tests from new locations)
  • pnpm lint — clean
  • pnpm typecheck — 3/3 tasks successful
  • pnpm format:check — all files formatted

Old packages

The v0.1.1 packages (@ocpp-debugkit/core, scenarios, reporter, cli) remain on npm unchanged. They will be deprecated with a migration message after @ocpp-debugkit/toolkit@0.2.0 is published and verified. No wrapper packages created.

Closes #54

…subpath exports

- Create packages/toolkit/ with single @ocpp-debugkit/toolkit package
- Move core, scenarios, reporter, CLI code into src/ internal modules
- Add src/replay/ and src/react/ stub modules
- Configure subpath exports: /core, /scenarios, /reporter, /replay, /react, /cli, /fixtures
- Configure ESM build with TypeScript declarations, tree-shaking (sideEffects: false)
- CLI binary ocpp-debugkit via package.json#bin
- Update web app to consume @ocpp-debugkit/toolkit
- Delete old package directories (core, scenarios, reporter, cli)
- All 196 existing tests pass from new locations
- Update AGENTS.md and CURRENT_STATE.md
- Add changeset (minor bump)

Closes #54
@vercel

vercel Bot commented Jul 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
ocpp-debugkit-web Ready Ready Preview, Comment Jul 8, 2026 1:07pm

The changeset with a minor bump would trigger auto-publish of
@ocpp-debugkit/toolkit when PR #55 merges via the release workflow.
We don't want to publish until all v0.2.0 work is complete.
The changeset will be added as part of the release issue (#33).
@sepehr-safari
sepehr-safari merged commit aa6b70e into main Jul 8, 2026
3 checks passed
@sepehr-safari
sepehr-safari deleted the feat/toolkit-consolidation branch July 8, 2026 13:14
sepehr-safari added a commit that referenced this pull request Jul 8, 2026
… publish (#67)

The release workflow's Changesets action publishes any package whose local
version hasn't been published on npm, even without a changeset. This caused
@ocpp-debugkit/toolkit@0.2.0 to be auto-published when PR #55 merged with
only Phase 0 consolidation code.

Fix: set version to 0.2.1 (next available) and private:true to prevent any
auto-publishing. private:true will be removed in the release issue (#66)
when all v0.2.0 features are complete and we're ready to publish.
sepehr-safari added a commit that referenced this pull request Jul 8, 2026
…ote (#68)

Phase 0 packaging consolidation is complete (PRs #55, #67 merged).
Documented the premature 0.2.0 auto-publish incident and the private:true
fix. Updated What's Next with issue numbers for remaining v0.2.0 work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(toolkit): create single @ocpp-debugkit/toolkit package + move existing code + subpath exports

1 participant